package cn.stylefeng.guns.modular.order.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 货运订单表
 */
@Data
@TableName("order_transport")
public class OrderTransport implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单状态（待提交、作废、待调、已发运、已完成）
     */
    @TableField("tstate")
    private String tstate;

    /**
     * 所属公司id
     */
    @TableField("operate_id")
    private Long operateId;

    /**
     * 公司名称
     */
    @TableField("operate_name")
    private String operateName;

    /**
     * 托运单号
     */
    @TableField("transport_number")
    private String transportNumber;

    /**
     * 客户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 下单时间
     */
    @TableField("undertime")
    private String undertime;

    /**
     * 客户单号
     */
    @TableField("customer_order")
    private String customerOrder;

    /**
     * 备注
     */
    @TableField("nodes")
    private String nodes;

    /**
     * 装货单位
     */
    @TableField("set_unit")
    private String setUnit;

    /**
     * 装货单位Id
     */
    @TableField("set_unitid")
    private Long setUnitId;

    /**
     * 装货地点
     */
    @TableField("set_location")
    private String setLocation;

    /**
     * 装货地点id
     */
    @TableField("set_locationid")
    private Long setLocationId;

    /**
     * 联系人
     */
    @TableField("set_people")
    private String setPeople;

    /**
     * 联系电话
     */
    @TableField("set_tel")
    private String setTel;

    /**
     * 提货时间
     */
    @TableField("set_mentiontime")
    private String setMentiontime;

    /**
     * 卸货单位
     */
    @TableField("get_unit")
    private String getUnit;

    /**
     * 卸货单位Id
     */
    @TableField("get_unitid")
    private Long getUnitId;

    /**
     * 卸货地点
     */
    @TableField("get_location")
    private String getLocation;

    /**
     * 卸货地点id
     */
    @TableField("get_locationid")
    private Long getLocationId;

    /**
     * 线路id
     */
    @TableField("line_id")
    private Long lineId;

    /**
     * 线路名称
     */
    @TableField("line_name")
    private String lineName;

    /**
     * 联系人
     */
    @TableField("get_people")
    private String getPeople;

    /**
     * 联系电话
     */
    @TableField("get_tel")
    private String getTel;

    /**
     * 到达时间
     */
    @TableField("get_mentiontime")
    private String getMentiontime;

    /**
     * 交付id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 制单时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 制单用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 制单姓名
     */
    @TableField(value = "create_name")
    private String createName;

    /**
     * 提交时间
     */
    @TableField(value = "submit_time")
    private Date submitTime;

    /**
     * 提交用户
     */
    @TableField(value = "submit_user")
    private Long submitUser;

    /**
     * 提交姓名
     */
    @TableField(value = "submit_name")
    private String submitName;

    /**
     * 审核时间
     */
    @TableField(value = "audit_time")
    private Date auditTime;

    /**
     * 审核用户
     */
    @TableField(value = "audit_user")
    private Long auditUser;

    /**
     * 审核姓名
     */
    @TableField(value = "audit_name")
    private String auditName;

    /**
     * 审核内容
     */
    @TableField(value = "audit_node")
    private String auditnode;

    /**
     * 订单号
     */
    @TableField(value = "order_number")
    private String orderNumber;
    
    /**
     * 备货区编号
     */
    @TableField(value = "areanumber")
    private String areanumber;

    /**
     * 备货区id
     */
    @TableField(value = "stockuparea_id")
    private Long stockupareaId;

    /**
     * 总件数
     */
    @TableField(value = "totalnum")
    private String TotalNum;

    /**
     * 商品数
     */
    @TableField(value = "goods_num")
    private String goodsNum;

    /**
     * 总体积
     */
    @TableField(value = "totalvolume")
    private String TotalVolume;

    /**
     * 已配置体积
     */
    @TableField(value = "toovolume")
    private String TooVolume;

    /**
     * 已配置数量
     */
    @TableField(value = "toonum")
    private String tooNum;

    /**
     * 公里数
     */
    @TableField("kilometer")
    private String kilometer;

    /**
     * 备货口
     */
    @TableField("stock_port")
    private String stockPort;

    /**
     * 新零帮发货门店id
     */
    @TableField("xlb_set_unit_id")
    private String xlbSetUnitId;

    /**
     * 新零帮发货仓库
     */
    @TableField("xlb_set_warehouse")
    private String xlbSetWarehouse;

    /**
     * 新零帮发货仓库id
     */
    @TableField("xlb_set_warehouse_id")
    private String xlbSetWarehouseId;

    /**
     * 新零帮收货客户id
     */
    @TableField("xlb_client_id")
    private String xlbClientId;

    /**
     * 是否拆零
     */
    @TableField("demolition")
    private String demolition;
    
    /**
     * 拆零封箱数
     */
    @TableField("piece_number")
    private String pieceNumber;
    
    /**
     * 单据来源(新零帮、零脉)
     */
    @TableField("order_source")
    private String orderSource;
    
    /**
     * 零脉单据类型
     */
    @TableField("lm_order_type")
    private String lmOrderType;
    
    /**
     * 零脉关联出库订单
     */
    @TableField("lm_association_order")
    private String lmAssociationOrder;

	@Override
    public String toString() {
        return "OrderTransport{" +
        "id=" + id +
        ", operateId=" + operateId +
        ", operateName=" + operateName +
        ", transportNumber=" + transportNumber +
        ", customerId=" + customerId +
        ", customerName=" + customerName +
        ", undertime=" + undertime +
        ", customerOrder=" + customerOrder +
        ", setUnit=" + setUnit +
        ", setLocation=" + setLocation +
        ", setLocationId=" + setLocationId +
        ", setPeople=" + setPeople +
        ", setTel=" + setTel +
        ", setMentiontime=" + setMentiontime +
        ", getUnit=" + getUnit +
        ", getLocation=" + getLocation +
        ", getLocationId=" + getLocationId +
        ", getPeople=" + getPeople +
        ", getTel=" + getTel +
        ", getMentiontime=" + getMentiontime +
        ", deliverId=" + deliverId +
        ", deptId=" + deptId +
        ", version=" + version +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", getUnitId=" + getUnitId +
        ", setUnitId=" + setUnitId +
        ", nodes=" + nodes +
        ", createName=" + createName +
        ", submitTime=" + submitTime +
        ", submitUser=" + submitUser +
        ", submitName=" + submitName +
        ", auditTime=" + auditTime +
        ", auditUser=" + auditUser +
        ", auditName=" + auditName +
        ", auditnode=" + auditnode +
        ", stockupareaId=" + stockupareaId +
        ", areanumber=" + areanumber +
        ", orderNumber=" + orderNumber +
        ", TotalNum=" + TotalNum +
        ", TotalVolume=" + TotalVolume +
        ", TooVolume=" + TooVolume +
        ", tooNum=" + tooNum +
        "}";
    }
}
